<?php
    $title="公司简介";
    require_once $_site->get_viewpath("wap/commom/header");
    require_once $_site->get_handlepath("info");
    $type = request('type',false,true,false,1);
    $typeval=array(1=>'公司介绍',2=>'公司荣誉',3=>'战略发展');
    $hover[$type] = "class='hover'";

    switch ($type){
        case 1:
            $single = info_fun_get_info_by_id(0,157);
            break;
        case 2:

            $single = info_fun_get_info_by_id(0,149);

            break;
        case 3:

            $single = info_fun_get_info_by_id(0,150);

            break;
        default:
            $single = info_fun_get_info_by_id(0,157);
    }

?>
<body style=" padding-bottom:110px;">
    <div class="top"><a href="/wap/index" class="icon_house house" style="right:-92%;"></a><a href="/wap/index" class="arrow_carrot-left return"></a><?php echo $title;?></div>
    <div class="jm_top_two">
        <ul>
            <li class="bo_two"><a <?php echo $hover[1];?> href="/wap/intro&type=1"><?php echo $typeval[1];?></a></li>
            <li class="bo_two"><a <?php echo $hover[2];?> href="/wap/intro&type=2"><?php echo $typeval[2];?></a></li>
            <li class="bo_two"><a <?php echo $hover[3];?> href="/wap/intro&type=3"><?php echo $typeval[3];?></a></li>
        </ul>
    </div>
    <div class="jm_src add"><?php echo $title;?> - <span><?php echo $typeval[$type];?></span></div>
    <div class="jm_list">

        <?php 
            //echo htmlspecialchars_decode(htmlspecialchars_decode($single['content'])); 
            //if(strpos($string, 'mobile') !== false){
                preg_match_all('/<\s*img\s+[^>]*?>/i',$single['content'],$matchs); //   提取出图片的正则 
                if($matchs[0] && !empty($matchs[0])){
                    echo "<p style='float: left; width: 100%;'>";
                    foreach($matchs[0] as $val){
                        echo $val;
                    }
                    echo "</p>";
                }
                $str = preg_replace('/<\s*img\s+[^>]*?>/i','',$single['content']); 
                echo htmlspecialchars_decode($str);
            //}else{
              //  echo htmlspecialchars_decode(htmlspecialchars_decode($single['content']));
            //}
        ?>
    </div>

    <?php require_once $_site->get_viewpath("wap/commom/footer");?>
</body>
</html>
